import Layout from '@/layout'

export default {
  path: '/system',
  name: 'system',
  component: Layout,
  meta: { title: '系统设置', icon: 'dashboard' },
  redirect: '/system_menu',
  children: [
    { path: '/system_menu',
      name: 'sys_menu',
      component: () => import('@/views/system/menu.vue'),
      meta: { title: '菜单管理', icon: 'iconfont-5' }
    },
    { path: '/system_role',
      name: 'sys_role',
      component: () => import('@/views/system/role.vue'),
      meta: { title: '角色管理', icon: 'iconfont-5' }
    },
    { path: '/system_user',
      name: 'sys_user',
      component: () => import('@/views/system/user.vue'),
      meta: { title: '用户管理', icon: 'iconfont-5' }
    },
    // { path: '/system_dict',
    //   name: 'system_dict',
    //   component: () => import('@/views/system/dict.vue'),
    //   meta: { title: '字典管理', icon: 'dashboard' }
    // },
    // { path: '/system_generator',
    //   name: 'system_generator',
    //   component: () => import('@/views/system/generator.vue'),
    //   meta: { title: '代码生成器', icon: 'dashboard' }
    // },
    { path: '/system_config',
      name: 'sys_config',
      component: () => import('@/views/system/config.vue'),
      meta: { title: '系统配置', icon: 'iconfont-5' }
    }
  ]
}
